/**
 * 	\file server/sync.h
 *  \date Created on: 02.05.2012
 *  \author riddler */

#ifndef SYNC_H_
#define SYNC_H_

#include <semaphore.h>
#include <pthread.h>

/* ** ** ** Semaphore für Sync-Vorgänge der Threads ** ** */

sem_t exit_sem, score_agent_sem, game_over_sem, quit_game_sem;

void change_game_status(int);
int get_game_status();
int create_status_mutex();
void status_mutex_lock();
void status_mutex_unlock();

#endif /* SYNC_H_ */
